﻿<%@ include file="/static/include.jsp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<html>
<head>
<script type="text/javascript" src="/static/demo/demo_add.js"></script>
<title>增加 Demo</title>
</head>
<body class="f12 fw" >
	<div  ng-app="app" ng-controller="demoCtrl" class="container">
		<div class="row col-sm-offset-2 col-sm-6">
			<!-- PAGE TITLE -->
			<div class="page-header">
				<h2><span class="glyphicon"></span>增加demo</h2>
			</div>
			<!-- SHOW ERROR/SUCCESS MESSAGES -->
			<div id="message" class="help-block" style="color:green"><b>{{message}}</b></div>
			<div id="errorMessage" class="help-block" style="color:red">{{errorMessage}}</div>
			<form ng-submit="processForm()" name="myForm" role="form">
			<!-- NAME -->
				<div id="name-group" class="form-group">
					<label><code>*</code>名称</label> 
					<input type="text" name="name" class="form-control" placeholder="demo名称"
						ng-model="formData.name" required maxlength="10">
				</div>
				<div id="dept-group" class="form-group">
				<label>部门</label>
				<select ng-model="formData.dept" ng-options="d.value as d.name for d in c_dept" required>
	    			<!-- <option value="">-- 请选择 --</option> -->
				</select>	
				</div>
				 <div class="input-group date">
					<label>日期</label> 
					<input type="date" name="create_date" class="form-control" placeholder="日期"
						ng-model="formData.create_date">
				</div>
				<!-- SUBMIT BUTTON -->
				<button type="submit" class="btn btn-success">
					<span class="glyphicon glyphicon-flash"></span> 提交!
				</button>
			</form>
		 </div>
			 <!-- <div>dept value: {{dept}}</div> -->
		    <!--  <div>message:{{formData}}</div> -->
	</div><!-- /wocao -->
</body>
</html>